package cn.edu.nwsuaf.examcenter.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.edu.nwsuaf.examcenter.service.StudentExamScoreService;

@Controller
@RequestMapping("/examScore")
public class StudentExamScoreController {
	@Resource(name="studentExamScoreService")
	private StudentExamScoreService studentExamScoreService;
	
	@RequestMapping(value="/loadStudentExamScore")
	public String loadStudentExamScore(@RequestParam(value="studentNo",required=false)String studentNo,
			@RequestParam(value="examPaperName",required=false)String examPaperName, 
			@RequestParam(value="p",required=false)String p,
			ModelMap modelMap){
		studentExamScoreService.loadStudentExamScore(studentNo, modelMap);
		return "exam/exam-score-list";
	}
}
